﻿using Newtonsoft.Json;

namespace SimpleScript
{
    internal class Program
    {
        static void Main()
        {
            Lexer lexer = new("code.txt");
            List<Token> tokenList = lexer.TokenList;
            Parser parser = new(tokenList);
            List<Statement> statementList = parser.StatementList;
            Interpreter interpreter=new(statementList);
            foreach (Statement statement in interpreter.StatementList)
            {
                interpreter.Execution(statement);
            }
        }
    }
}